package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.UpdateUserPwd;
import com.cskaoyan.mall.model.admin.AdminLoginBO;
import com.cskaoyan.mall.model.user.UserForUpdate;
import com.cskaoyan.mall.model.user.UserVOAndUserSignUpBO;

import java.util.List;
import java.util.Map;

/**
 * @author: jyf2000jyf
 */
public interface UserService {
    List<UserVOAndUserSignUpBO> getAllUser();

    boolean deleteUser(int id);

    List<UserVOAndUserSignUpBO> getSearchUser(String word);

    Map<String,Object> login(AdminLoginBO adminLoginBO);

    boolean addUser(UserVOAndUserSignUpBO userVOAndUserSignUpBO);

    UserForUpdate getUserByUserName(String token);

    boolean updateUserData(UserForUpdate userForUpdate);

    String updatePwd(UpdateUserPwd pwd);
}
